package cn.maidouya.org.domain;

import cn.maidouya.basic.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data/* 提供了get和set、toString*/
@NoArgsConstructor/**/
@AllArgsConstructor
public class Department extends BaseDomain {
    private String sn;
    private String name;
    private String dirPath;
    private Integer state;
    /** 部门经理id*/
    private Long manager_id;
    private Employee manager;
    /** 上级部门id */
    private Long parent_id;
    private Department parent;
    // 查询所有部门集合，装到一起
    private List<Department> children = new ArrayList<>();
}